const { contextBridge, ipcRenderer } = require('electron')

contextBridge.exposeInMainWorld('mapPage_API', {
    // injectScript: () => ipcRenderer.invoke('inject_txmap_script'),
    savePositionObj: (obj) => ipcRenderer.send('save_position_obj', obj),
    getPositionObj: () => ipcRenderer.invoke('get_position_obj'),
    getPlaceTitle: () => ipcRenderer.invoke('get_place_title'),
})